<table>
  <tr>
    <td class="tdRight">
      <%= Artist.name %>
    </td>
    <td>
	 <% if params[:artist_id] %>
	 <% name = Artist.find(params[:artist_id]).fullname%>
	 <%= name %>
	 <%= new.hidden_field :artist_id, {:value => params[:artist_id]} %>
	 <% else %>
     <%= collection_select(:artwork, :artist_id, Artist.find(:all), :id, :fullname, {:prompt => Artwork.l_attr('select artist')}, html_options = {:class => 'adminFields'}) %>
	<% end %>      
    </td>
  </tr>
  <%= new.text_field :name, :required => true, :label => Artwork.l_attr(:title) %>
  <%= new.text_field :price, :required => true, :label => Artwork.l_attr(:price) %>
  <%= new.text_field :quantity, :required => false, :label => Artwork.l_attr(:quantity) %>
  <%= new.text_field :weight, :required => false, :label => Artwork.l_attr(:weight) %>
  <%= new.text_field :height, :required => false, :label => Artwork.l_attr(:height) %>
  <%= new.text_field :width, :required => false, :label => Artwork.l_attr(:width) %>
  <%= new.text_field :depth, :required => false, :label => Artwork.l_attr(:depth) %>
  <%= new.text_field :time_to_make, :required => false, :label => Artwork.l_attr(:time) %>
  
    <tr>
      <td colspan="2" class="tdCenter">
        <%= new.submit l('common', :save) %>
      </td>
    </tr>  
  </table>